package com.geek.entity.game;

import java.time.LocalDateTime;

/**
 * @Desc TODO
 * @Author yeban
 * @Date 2025/11/20
 */
public class Skill {
    private Integer id;
    private String name;
    private String des;
    private String iconImg;
    private String desImg;
    private Integer heroId;
    private LocalDateTime createdAt;
    private LocalDateTime updatedAt;
    private Integer isDeleted;

    // 一对一 skill -> hero
    private Heros hero;

    public Skill() {
    }

    public Skill(Integer id, String name, String des, String iconImg, String desImg, Integer heroId, LocalDateTime createdAt, LocalDateTime updatedAt, Integer isDeleted) {
        this.id = id;
        this.name = name;
        this.des = des;
        this.iconImg = iconImg;
        this.desImg = desImg;
        this.heroId = heroId;
        this.createdAt = createdAt;
        this.updatedAt = updatedAt;
        this.isDeleted = isDeleted;
    }

    public Skill(Integer id, String name, String des, String iconImg, String desImg, Integer heroId, LocalDateTime createdAt, LocalDateTime updatedAt, Integer isDeleted, Heros hero) {
        this.id = id;
        this.name = name;
        this.des = des;
        this.iconImg = iconImg;
        this.desImg = desImg;
        this.heroId = heroId;
        this.createdAt = createdAt;
        this.updatedAt = updatedAt;
        this.isDeleted = isDeleted;
        this.hero = hero;
    }

    /**
     * 获取
     * @return id
     */
    public Integer getId() {
        return id;
    }

    /**
     * 设置
     * @param id
     */
    public void setId(Integer id) {
        this.id = id;
    }

    /**
     * 获取
     * @return name
     */
    public String getName() {
        return name;
    }

    /**
     * 设置
     * @param name
     */
    public void setName(String name) {
        this.name = name;
    }

    /**
     * 获取
     * @return des
     */
    public String getDes() {
        return des;
    }

    /**
     * 设置
     * @param des
     */
    public void setDes(String des) {
        this.des = des;
    }

    /**
     * 获取
     * @return iconImg
     */
    public String getIconImg() {
        return iconImg;
    }

    /**
     * 设置
     * @param iconImg
     */
    public void setIconImg(String iconImg) {
        this.iconImg = iconImg;
    }

    /**
     * 获取
     * @return desImg
     */
    public String getDesImg() {
        return desImg;
    }

    /**
     * 设置
     * @param desImg
     */
    public void setDesImg(String desImg) {
        this.desImg = desImg;
    }

    /**
     * 获取
     * @return heroId
     */
    public Integer getHeroId() {
        return heroId;
    }

    /**
     * 设置
     * @param heroId
     */
    public void setHeroId(Integer heroId) {
        this.heroId = heroId;
    }

    /**
     * 获取
     * @return createdAt
     */
    public LocalDateTime getCreatedAt() {
        return createdAt;
    }

    /**
     * 设置
     * @param createdAt
     */
    public void setCreatedAt(LocalDateTime createdAt) {
        this.createdAt = createdAt;
    }

    /**
     * 获取
     * @return updatedAt
     */
    public LocalDateTime getUpdatedAt() {
        return updatedAt;
    }

    /**
     * 设置
     * @param updatedAt
     */
    public void setUpdatedAt(LocalDateTime updatedAt) {
        this.updatedAt = updatedAt;
    }

    /**
     * 获取
     * @return isDeleted
     */
    public Integer getIsDeleted() {
        return isDeleted;
    }

    /**
     * 设置
     * @param isDeleted
     */
    public void setIsDeleted(Integer isDeleted) {
        this.isDeleted = isDeleted;
    }

    /**
     * 获取
     * @return hero
     */
    public Heros getHero() {
        return hero;
    }

    /**
     * 设置
     * @param hero
     */
    public void setHero(Heros hero) {
        this.hero = hero;
    }

    public String toString() {
        return "Skill{id = " + id + ", name = " + name + ", des = " + des + ", iconImg = " + iconImg + ", desImg = " + desImg + ", heroId = " + heroId + ", createdAt = " + createdAt + ", updatedAt = " + updatedAt + ", isDeleted = " + isDeleted + ", hero = " + hero + "}";
    }
}
